<style>
.modalwidth {
	width: 550px;	
	height: 240px;
}
</style>

<div class="profile">
	<div class="panel">
		<div class="panel-heading-primary clearfix bg-yellow">
			<span class="col-xs-2 pull-left end logo "> <img
				class="img-responsive img-thumbnail "
				src="<?=base_url()?>assets/img/data/logo/<?= $profile['logo'];?>" alt=""
				contenteditable="false">

			</span>

			<h1>
                <?php if($profile['title']){?>
				<?= $profile['title']; ?>
                <?php }?>
			</h1>
			<h2 class="color1">
                <?php if($profile['address1']){?>
				<?= $profile['address1']; ?>
                <?php }?>
                <?php if($profile['id']){?>
				<?= $this->location_model->getLocationHTML($profile['id']); ?>
			    <?php }?>
            </h2>
			<h4 class="font18">
				<i class="fa fa-phone fa-lg"></i>
                <?php if($profile['phone1']){?>
				<?= $profile['phone1'];?>
                <?php }?>
			</h4>
		</div>


		<!-- MAP -->
		<div id="map-canvas">
			<?php echo $map['html']; ?>
			<?php echo $map['js']; ?>
		</div>
		<!-- END MAP -->

	</div>

	<ul class="list-group">


		<?php if($profile['description']){?>
		<li class="list-group-item">
			<p>
				<?= strip_tags($profile['description']); ?>
			</p>

		</li>
		<?php }?>

		<li class="list-group-item">
			<p class="text-danger">
				If you have any query, you can contact via Contact form or can call
				directly..<br> Kindly mention this website name - <strong><?= setting('web_friendly_name'); ?>
				</strong> whenever you contact.

			</p>


		</li>
	</ul>




	<div class="well col-lg-12 clearfix">

		<dl class="col-lg-6">
			<dt>
				<i class="fa fa-1x fa-tags "></i> Services
			</dt>
			<dd>
                <?php if($profile['id']){?>
				<?= $this->category_model->getCategoryHTML($profile['id']); ?>
			    <?php }?>
            </dd>
		</dl>

		<dl class="col-lg-6">
			<dt>
				<i class="fa fa-1x pull-left fa-phone "></i> Phone No
			</dt>
			<dd class="font18">
                <?php if($profile['phone1']){?>
				<?= $profile['phone1'];?>
                <?php }?>
			</dd>
		</dl>
		<dl class="col-lg-6">
			<dt>
				<i class="fa fa-1x pull-left fa-globe "></i> Website
			</dt>
			<dd>
				<?= ($profile['website'] ? $profile['website'] : "n/a");?>
			</dd>
		</dl>

	</div>






	<?php if(isset($adsense) && $adsense != ''){?>

	<div class="col-lg-6 pull-left">
		<div class="adspace">
			<script async
				src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
			<!-- RESPONSIVE2 -->
			<ins class="adsbygoogle" style="display: block"
				data-ad-client="<?php echo $adsense;?>" data-ad-format="auto"></ins>
			<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
		</div>
	</div>

	<div class="col-lg-6 pull-right ">
		<div class="adspace">
			<script async
				src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
			<!-- RESPONSIVE2 -->
			<ins class="adsbygoogle" style="display: block"
				data-ad-client="<?php echo $adsense;?>" data-ad-format="auto"></ins>
			<script>
				(adsbygoogle = window.adsbygoogle || []).push({});
				</script>
		</div>
	</div>

	<?php }?>

	<!-- START TAB -->
	<!-- Nav tabs -->
	<div class=" clearfix">
		<ul class="nav nav-tabs">
		<?php if($photos){?>
			<li class="active "><a class="btn-yellow" href="#gallery"
				data-toggle="tab">Gallery</a>
			</li>
			
			<li><a class="btn-yellow" href="#isBusiness" data-toggle="tab"><i
					class="fa fa-flag"></i> Is this your Business ?</a>
			</li>
			<li><a class="btn-yellow" href="#messages" data-toggle="tab">Report
					Incorrect</a>
			</li>
			<li><a class="btn-yellow" href="#settings" data-toggle="tab">Sent to
					Friend ?</a>
			</li>
			<?php }?>
			<?php if(!$photos){?>
			
			<li  class="active "><a class="btn-yellow" href="#isBusiness" data-toggle="tab"><i
					class="fa fa-flag"></i> Is this your Business ?</a>
			</li>
			<li><a class="btn-yellow" href="#messages" data-toggle="tab">Report
					Incorrect</a>
			</li>
			<li><a class="btn-yellow" href="#settings" data-toggle="tab">Sent to
					Friend ?</a>
			</li>
			<?php }?>
		</ul>





		<div class="tab-content clearfix">
		<?php if($photos){?>
			<div class="tab-pane in active fade" id="gallery">
		
				
				
				
				<?php foreach($photos as $photos):?>
				<div class="col-md-3 col-sm-3 col-xs-12">
				<a id="mediaVideo" href="#" data-toggle="modal"
							data-target="<?='#'.$photos->id; ?>">
					<img class="logo img-responsive img-thumbnail "
						src="<?=base_url()?>assets/img/data/photo/<?= $photos->value;?>" title="<?= $photos->title;?>" alt="<?= $photos->title;?>"
						contenteditable="false"> 
</a>
				</div>
				
				<div class="modal fade" id="<?=$photos->id; ?>" tabindex="-1"
						role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">



						<div class="modal-dialog">
							<div class="modal-content">

								<div class="modal-header">
						<?= $photos->title;?>
									<button type="button" class="close" data-dismiss="modal"
										aria-hidden="true">X</button>

								</div>


								<div class="modal-body">

									<img class="img-responsive"
										src="<?= base_url() ?>assets/img/data/photo/<?= $photos->value;?>"
										alt="">
								</div>

							</div>
							<!-- /.modal-content -->
						</div>
						<!-- /.modal-dialog -->

					</div>
					<!-- /.modal -->
				
				<?php endforeach;?>
				
			
				
				
			</div>
			
			<div class="tab-pane fade" id="isBusiness">
				<p class="text-danger">
					<i class="fa fa-flag"></i> To claim this business listing please
					complete this form.
				</p>
				<form class="col-lg-6" id="post_claim_form" name="post_claim_form"
					method="POST">


					<div class="form-group" hidden="hidden">
						<label>Company Name</label> <input type="text"
							class="form-control" id="post_title" name="post_title"
							value="<?= $profile['title'];?>" placeholder="Name">
					</div>
					<div class="form-group">
						<label>Name</label> <input type="text" class="form-control"
							id="claim_name" name="claim_name" placeholder="Name">
					</div>
					<div class="form-group">
						<label>Email address</label> <input type="email"
							class="form-control" id="claim_email" name="claim_email"
							placeholder="Enter email">
					</div>
					<div class="form-group">
						<label>Possition at</label> <input type="text"
							class="form-control" id="position_at" name="position_at"
							placeholder="Postion at">
					</div>

					<input type="button" class="btn btn-default" id="btn_claim_submit"
						name="btn_claim_submit" value="Submit"> <span class="pull-right"
						id="claim_report"></span>
				</form>

				<div class="col-lg-6 pull-right">

					<h3 class="font18">Benifits of Business Claim..</h3>
					<ul>
						<li>Edit Profile</li>
						<li>Reach more Customer</li>
						<li>Social Sharing</li>
					</ul>
				</div>


			</div>
			<?php }?>

			<?php if(!$photos){?>
			<div class="tab-pane in active fade" id="isBusiness">
				<p class="text-danger">
					<i class="fa fa-flag"></i> To claim this business listing please
					complete this form.
				</p>
				<form class="col-lg-6" id="post_claim_form" name="post_claim_form"
					method="POST">


					<div class="form-group" hidden="hidden">
						<label>Company Name</label> <input type="text"
							class="form-control" id="post_title" name="post_title"
							value="<?= $profile['title'];?>" placeholder="Name">
					</div>
					<div class="form-group">
						<label>Name</label> <input type="text" class="form-control"
							id="claim_name" name="claim_name" placeholder="Name">
					</div>
					<div class="form-group">
						<label>Email address</label> <input type="email"
							class="form-control" id="claim_email" name="claim_email"
							placeholder="Enter email">
					</div>
					<div class="form-group">
						<label>Possition at</label> <input type="text"
							class="form-control" id="position_at" name="position_at"
							placeholder="Postion at">
					</div>

					<input type="button" class="btn btn-default" id="btn_claim_submit"
						name="btn_claim_submit" value="Submit"> <span class="pull-right"
						id="claim_report"></span>
				</form>

				<div class="col-lg-6 pull-right">

					<h3 class="font18">Benifits of Business Claim..</h3>
					<ul>
						<li>Edit Profile</li>
						<li>Reach more Customer</li>
						<li>Social Sharing</li>
					</ul>
				</div>


			</div>
			
			<?php }?>



			<div class="tab-pane fade" id="messages">

				<form id="post_report_form" name="post_report_form" method="POST">

					<div class="col-lg-12">

						<div class="form-group" hidden="hidden">
							<label>Company Name</label> <input type="text"
								class="form-control" id="post_title" name="post_title"
								value="<?= $profile['title'];?>" placeholder="Name">
						</div>
						<div class="col-sm-6">
							<div class="form-group">
								<label>Name</label> <input type="text" class="form-control"
									id="report_name" name="report_name" placeholder="Name">
							</div>
						</div>
						<div class="col-sm-6 pull-right">
							<div class="form-group">
								<label>Email</label> <input type="text" class="form-control"
									id="report_email" name="report_email" placeholder="Email">
							</div>
						</div>
						<div class="col-sm-6">
							<div class="form-group">
								<label>Location</label> <input type="text" class="form-control"
									id="report_location" name="report_location" placeholder="Location">
							</div>
						</div>
						<div class="col-sm-6 pull-right">
							<div class="form-group">
								<label>Contact No</label> <input type="text"
									class="form-control" id="contact_no" name="contact_no"
									placeholder="Contact No">
							</div>
						</div>

						<div class="col-sm-6">
							<div class="form-group">
								<label>Report Type</label> <select class="form-control" name="report_type" id="report_type">
							<option value="" selected="selected">--Select Report Type--</option>
							<option value="Business Name Incorrect/Missing">
							Business Name Incorrect/Missing
							</option>
							<option value="Phone Number is Incorrect/Missing">
							Phone Number is Incorrect/Missing
							</option>
							<option value="Mobile Contact is Incorrect/Missing">
							Mobile Contact is Incorrect/Missing
							</option>
							<option value="Email is Incorrect/Missing">
							Email is Incorrect/Missing
							</option>
							<option value="Wrong Website Link/Missing">
							Wrong Website Link/Missing
							</option>
							<option value="Location/Address is incorrect">
							Location/Address is incorrect
							</option>
							<option value="Other Information">
							Other Information
							</option>
						</select>
							</div>
						</div>
						
						<div class="col-sm-12">
							<div class="form-group">
								<label>Description</label> <textarea class="form-control" rows="5" name="description"
							id="description"></textarea>
							</div>
						</div>

						
						<div class="col-sm-12">
							<div class="form-group">
				<input type="button" class="btn btn-default" id="btn_report_submit" name="btn_report_submit" value="Report">
					<span class="pull-right" id="report_msz"></span>
				</div> 
				</div>
					</div>
				</form>

			</div>
			<div class="tab-pane fade" id="settings">
			<form id="post_send_form" name="post_send_form" method="POST">

					<div class="col-lg-12">

					
					
					<div class="form-group" hidden="hidden">
							<label>Company Url</label> <input type="text"
								class="form-control" id="post_url" name="post_url"
								value="<?php echo current_url();?>" placeholder="Name">
								
								
						</div>
						<div class="form-group" hidden="hidden">
							<label>Company Name</label> <input type="text"
								class="form-control" id="post_title" name="post_title"
								value="<?= $profile['title'];?>" placeholder="Name">
						</div>
						<div class="form-group" hidden="hidden">
							<label>Address</label> <input type="text"
								class="form-control" id="post_address" name="post_address"
								value="<?= $profile['address1'];?>" placeholder="Name">
						</div>
						<div class="form-group" hidden="hidden">
							<label>Category</label> <input type="text"
								class="form-control" id="post_keyword" name="post_keyword"
								value="<?= $this->category_model->getCategoryHTML($profile['id']); ?>" placeholder="Name">
						</div>
						<div class="col-sm-12">
							<div class="form-group">
								<label>Emails</label>
								<span class="text text-info">(Multiple Email with comma(,) separated)</span>
								 <textarea class="form-control" rows="5" name="send_email"
							id="send_email"></textarea>
							</div>
						</div>
						<div class="col-sm-12">
							<div class="form-group">
				<input type="button" class="btn btn-default" id="btn_email_submit" name="btn_email_submit" value="Send">
					<span class="pull-right" id="email_msz"></span>
				</div> 
				</div>
					</div>
				</form>
			
			</div>
		</div>



	</div>
	<!-- END TAB -->



	<div class="clearfix">
		<div class=""></div>

	</div>



</div>
<!-- END OF PROFILE -->
